package com.skt.exception;

public class OrderException extends BaseException {

    public OrderException(ErrorCode errorCode) {
        super(errorCode);
    }

    public OrderException(int code, String message) {
        super(code, message);
    }

    public OrderException(ErrorCode errorCode, String customMessage) {
        super(errorCode, customMessage);
    }

    // ========== 静态工厂方法 ==========
    public static OrderException of(ErrorCode errorCode) {
        return new OrderException(errorCode);
    }

    public static OrderException of(ErrorCode errorCode, String customMessage) {
        return new OrderException(errorCode, customMessage);
    }

    public static OrderException of(int code, String message) {
        return new OrderException(code, message);
    }
}